package com.ruoyi.system.sale.domain;

/**
 * 预警封装
 *
 * @author xuezhenwei
 * @date 2024-06-16 14:43
 */

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

import java.io.Serializable;


@Data
public class SaleWapper implements Serializable {
    private Object warning;

    private String code;

    private String updateTime;

    private String fxLink;

    public JavaType collectionType(ObjectMapper objectMapper ,Class<?> collectionClz, Class<?> ...elementClz) {
        return objectMapper.getTypeFactory().constructParametricType(collectionClz, elementClz);
    }
}
